{% extends 'mainapp/base.html' %}
{% block title %}
    {{ object.title|default:"Новости" }}
{% endblock title %}
{% block content %}
    <div class="row justify-content-center pt-3">
        <div class="col-md-12 col-lg-8">
            <div class="card shadow">
                <div class="card-body">
                    <h5 class="card-title">{{ object.title }}</h5>
                    <p class="card-text">
                        {{ object.body }}
                    </p>
                    <a href="{% url 'mainapp:news' %}" class="btn btn-primary">
                        Назад
                    </a>
                </div>
            </div>
        </div>
    </div>
{% endblock content %}




